 <template>
  <!-- 详细内容页面 -->
  <div id="container">
    <el-collapse v-model="activeNames" v-loading="loading">
      <el-collapse-item title="基本信息" name="1">
        <bill-detail ref="detail" :form="billDetail"></bill-detail>
      </el-collapse-item>
      <!-- <el-collapse-item title="产品信息" name="2">
        <products-detail
          ref="productsDetail"
          :list="productionOutData.schedulingOutSonList"
        ></products-detail>
      </el-collapse-item> -->
    </el-collapse>
  </div>
</template>
<script>
import billDetail from './components/billDetail.vue'
// import productsDetail from './components/productsDetail.vue'
export default {
  name: 'detail',
  data () {
    return {
      activeNames: ['1'],
      billDetail: {},
      loading: false
    }
  },
  components: {
    billDetail,
    // productsDetail,
  },
  mounted () {
    this.getDetail()
  },
  methods: {
    async getDetail () {
      this.loading = true
      let { data } = await this.$API.finance.bill.getBillDetail.get({ billId: this.$route.query.id })
      this.billDetail = data
      // this.activeNames.push('2')
      this.loading = false
    },

  }
}
</script>
<style lang='scss' scoped>
#container {
  margin: 10px;
  :deep(.el-collapse-item__header) {
    padding-left: 20px;
    font-size: 16px;
  }
  :deep(.el-collapse-item__content) {
    padding: 0 20px 20px 20px;
  }
  :deep(.el-form-item) {
    margin-bottom: 5px;
  }
  :deep(.el-form-item__label) {
    color: #999;
  }
}
</style>